﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Resources;
using System.Reflection;
using System.Xml.Serialization;

namespace BibleLib
{
    public class BibleLibProvider
    {
        public static List<Book> GetAllBooks()
        {
            using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("BibleLib.bible.xml"))
            {
                XmlSerializer xmlSer = new XmlSerializer(typeof(List<Book>));
                return (List<Book>)xmlSer.Deserialize(stream);
            }

        }
    }
}
